﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Jeeva.ControlLibrary;

namespace ExcuseMeBoss
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class GmailNotifierWindow : Window
    {
        public GmailNotifierWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {            
            jNotifier notifier = new jNotifier();
            notifier.UserName = "vavjeeva";
            notifier.Password = "";
            List<IGmailMessage> list = notifier.ReceiveMails();
            foreach (var message in list)
            {
                Label label = new Label();
                label.Content += message.MessageFrom + " : " + message.MessageTitle;
                panel.Children.Add(label);
            }
        }
    }
}
